//
//  UIView+frame.m
//  LLP
//
//  Created by Shiyu pan on 12-9-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "UIView+frame.h"

@implementation UIView (frame)

- (float)left{
    return self.frame.origin.x;
}
- (float)right{
    return (self.frame.origin.x + self.frame.size.width);
}
- (float)top{
    return self.frame.origin.y;
}
- (float)bottom{
    return (self.frame.origin.y + self.frame.size.height);
}
- (float)width{
    return self.frame.size.width;
}
- (float)height{
    return self.frame.size.height;
}

@end
